package com.Humanities.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.model.dto.BindTeachplanMediaDto;
import com.xuecheng.content.model.dto.SaveTeachplanDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import com.xuecheng.content.model.po.Teachplan;
import com.xuecheng.content.model.po.TeachplanMedia;

import java.util.List;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author ysj
 * @since 2025-03-26
 */
public interface ITeachplanService extends IService<Teachplan> {
   // 查询课程计划树形结构
    List<TeachplanDto> findTeachplanTree(Long courseId);
   //创建或修改课程计划
    void saveOrUpdateTeachplanTree(SaveTeachplanDto teachplan);
   //传入课程计划id进行删除操作
    void removeByIdNew(Long id);
    //课程计划下移
    void movedownTeachplan(Long id);
    //课程计划上移
    void moveupTeachplan(Long id);
    /**
     * @description 教学计划绑定媒资
     * @param bindTeachplanMediaDto
     * @return com.xuecheng.content.model.po.TeachplanMedia
     * @author Mr.M
     * @date 2022/9/14 22:20
     */
   TeachplanMedia associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

    /**
     * 解除媒资和课程计划的绑定关系
     * @param teachPlanId
     * @param mediaId
     */
    void unassociationMedia(Long teachPlanId, String mediaId);
}
